package manytoone.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author 宋伟宁
 * @Date 2023/9/6
 * @Version 1.0
 **/
@Data
public class Student  implements Serializable {
    private String name;
    private Integer age;
    private Integer sex;
    private Integer id;
    private Date birthday;

    private Integer rid;
    /**
     * 学生和班级是多对一的关系：在多方中配置一个单方的对象
     * 学生是多方，班级是单方
     */
    private Room room;
}
